<%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 2018/7/28
  Time: 20:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Add customer</title>
</head>
<body>
<br>
<span style="color: red; ">
    <%=request.getAttribute("message") == null ? "" : request.getAttribute("message")%>
</span>
<br><br>
<form action="addCustomer.do" method="post">
    <table>
        <tr>
            <td>Customer Name</td>
            <td><input type="text" name="name"
                       value="<%=request.getParameter("name")==null?"":request.getParameter("name")%>"/></td>
        </tr>
        <tr>
            <td>Address</td>
            <td><input type="text" name="address"
                       value="<%=request.getParameter("address")==null?"":request.getParameter("address")%>"/></td>
        </tr>
        <tr>
            <td>Phone:</td>
            <td><input type="text" name="phone"
                       value="<%=request.getParameter("phone")==null?"":request.getParameter("phone")%>"/></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="submit"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
